import 'package:flutter/material.dart';

import '../compant/Appcolor.dart';
import '../compant/Kbutton.dart';
import '../compant/Kbuttonwhite.dart';
import 'home.dart';

class SignUpToWin extends StatefulWidget {
  const SignUpToWin({super.key});

  @override
  State<SignUpToWin> createState() => _SignUpToWinState();
}

class _SignUpToWinState extends State<SignUpToWin> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(),
      body: Padding(
        padding: const EdgeInsets.all(30.0),
        child: Column(
          mainAxisAlignment: MainAxisAlignment.spaceBetween,
          crossAxisAlignment: CrossAxisAlignment.center,
          children: [
            RichText(
                text: TextSpan(
              style: TextStyle(color: textColor, fontSize: 26),
              text: 'Don’t miss any update',
            )),
            const SizedBox(
              width: double.infinity,
            ),
            Text(
              'Get notifications and updates in\n real time.',
              style: TextStyle(
                color: textGaryColor,
              ),
              textAlign: TextAlign.center,
            ),
            const SizedBox(
              height: 40,
            ),
            Image.asset('assets/messge.png'),
            const SizedBox(
              height: 60,
            ),
            Kbutton(
              ontap: () {
                Navigator.push(context,
                    MaterialPageRoute(builder: (BuildContext context) {
                  return home();
                }));
              },
              text: 'Get Started',
            ),
            Kbuttonwhite(
              ontap: () {},
              text: 'Do not allow',
            ),
          ],
        ),
      ),
    );
  }
}
